import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/assets/css/reset.css'
import 'element-ui/lib/theme-chalk/index.css';
import copyVuex from '@/plugins/copyVuex'
import elementPlugin from '@/plugins/elementPlugin'
Vue.use(copyVuex).use(elementPlugin)
Vue.config.productionTip = false

// 权限按钮配置
import permission from '@/directive/permission'
Vue.directive("permission", permission)

// axios路径配置
import axios from 'axios';
if (process.env.NODE_ENV === 'production') {
    if (process.env.VUE_APP_FLAG == 'pro') {
        axios.defaults.baseURL = '';
    }
} else {
    axios.defaults.baseURL = '';
}
//路由权限判断
import "./permission"
import './icons'
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')